package com.school.information.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.school.information.core.security.entity.BaseEntity;
import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

/**
 * (ModuleInfo)表实体类
 *
 * @author ycc
 * @since 2023-07-04 20:36:25
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("module_info")
public class ModuleInfoEntity extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    //模块图标
    private String icon;
    //模块名称
    @NotBlank(message = "模块名称不能为空")
    @Length(max = 20, message = "模块名称最大长度为20个字符")
    private String name;
    //主图(大于1张为轮播图)    
    private String mainImg;
    //模块内容    
    private String content;
    //备注    
    private String remark;

}

